package com.tc.service;

import com.tc.entity.Menu;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;

/**
 * @Auther: tianchao
 * @Date: 2025/2/15 10:18
 * @Description:
 */
@Service
public class MenuService {
    static final List<Menu> allMenus;
    static {
        allMenus = Arrays.asList(
                new Menu(1L,"系统管理",null),
                new Menu(2L,"用户管理",1L),
                new Menu(3L,"角色管理",1L),
                new Menu(4L,"商品管理",null),
                new Menu(5L,"商品分类",4L),
                new Menu(6L,"商品品牌",4L)
        );
    }
    public List<Menu> selectMenuAll() {
        return allMenus;
    }
}
